home *** CD-ROM | disk | FTP | other *** search
- /*
- * devConfig.c --
- *
- * Configuration table for the devices in the system. There is
- * a table for the possible controllers in the system, and
- * then a table for devices. Devices are implicitly associated
- * with a controller. This file should be automatically generated
- * by a config program, but it isn't.
- *
- * Copyright 1986, 1989 Regents of the University of California
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appear in all copies. The University of California
- * makes no representations about the suitability of this
- * software for any purpose. It is provided "as is" without
- * express or implied warranty.
- */
-
- #ifndef lint
- static char rcsid[] = "$Header: /cdrom/src/kernel/Cvsroot/kernel/dev/sun3.md/devConfig.c,v 9.5 90/12/06 21:58:20 jhh Exp $ SPRITE (Berkeley)";
- #endif not lint
-
-
- #include "sprite.h"
- #include "devInt.h"
- #include "scsiHBA.h"
- #include "devTypes.h"
-
- /*
- * Per device include files.
- */
- #include "scsi3.h"
- #include "scsi0.h"
- #include "xylogics450.h"
- #include "jaguar.h"
- #include "devTMR.h"
-
- /*
- * The controller configuration table.
- */
- DevConfigController devCntrlr[] = {
- /* Name Address, Addr space, ID, InitProc IntrVector IntrRoutine. */
- { "SCSI3", 0x0FE12000, DEV_OBIO, 0, DevSCSI3Init,26, DevSCSI3Intr },
- { "SCSI3", 0x200000, DEV_VME_D16A24, 0, DevSCSI3Init, 64, DevSCSI3Intr },
- { "SCSI0", 0x200000, DEV_VME_D16A24, 0, DevSCSI0Init, 64, DevSCSI0Intr },
- { "Xylogics450", 0xee40, DEV_VME_D16A16, 0, DevXylogics450Init,
- 72, DevXylogics450Intr},
- { "JaguarHBA", 0x8800, DEV_VME_D16A16, 0, DevJaguarInit, 211,
- DevJaguarIntr},
- { "tmr0", 0x0FE14000, DEV_OBIO, 0, Dev_TimerProbe, 0, ((Boolean (*)())0)},
-
- };
- int devNumConfigCntrlrs = sizeof(devCntrlr) / sizeof(DevConfigController);
-
- /*
- * Table of SCSI HBA types attached to this system.
- */
-
- ScsiDevice *((*devScsiAttachProcs[]) _ARGS_((Fs_Device *devicePtr,
- void (*insertProc) (List_Links *elementPtr,
- List_Links *elementListHdrPtr)))) = {
- DevSCSI3AttachDevice, /* SCSI Controller type 0. */
- DevSCSI0AttachDevice, /* SCSI Controller type 1. */
- DevJaguarAttachDevice, /* SCSI Controller type 2. */
- };
- int devScsiNumHBATypes = sizeof(devScsiAttachProcs) /
- sizeof(devScsiAttachProcs[0]);
-
- /*
- * A list of disk devices that is used when probing for a root partition.
- * The choices are:
- * Drive 0 partition 0 of xylogics 450 controller 0.
- * Drive 1 partition c of xylogics 450 controller 0.
- * SCSI Disk target ID 0 LUN 0 partition 2 on SCSI0 HBA 0.
- * SCSI Disk target ID 0 LUN 0 partition 2 on SCSI3 HBA 0.
- * SCSI Disk target ID 0 LUN 0 partition 0 on SCSI0 HBA 0.
- * SCSI Disk target ID 0 LUN 0 partition 0 on SCSI3 HBA 0.
- */
- Fs_Device devFsDefaultDiskPartitions[] = {
- /*
- * Mint boots from its 'a' partition.
- */
- { -1, DEV_XYLOGICS, 0, (ClientData) NIL },
- /*
- * Nadreck (at PARC) boots from disk LUN 1, partition c.
- * (2 bits for LUN, then three bits for partition => 013)
- */
- { -1, DEV_XYLOGICS, 013, (ClientData) NIL },
- { -1, SCSI_MAKE_DEVICE_TYPE(DEV_SCSI_DISK, DEV_SCSI0_HBA, 0, 0, 0, 2),
- SCSI_MAKE_DEVICE_UNIT(DEV_SCSI_DISK, DEV_SCSI0_HBA, 0, 0, 0, 2),
- (ClientData) NIL },
- /*
- * The first entry is repeated to get around the problems with
- * unit attentions. Right now the kernel will get a unit attention on
- * the first access and will bail out. Gross. jhh 12/6/90
- */
- { -1, SCSI_MAKE_DEVICE_TYPE(DEV_SCSI_DISK, DEV_SCSI0_HBA, 0, 0, 0, 2),
- SCSI_MAKE_DEVICE_UNIT(DEV_SCSI_DISK, DEV_SCSI0_HBA, 0, 0, 0, 2),
- (ClientData) NIL },
- { -1, SCSI_MAKE_DEVICE_TYPE(DEV_SCSI_DISK, DEV_SCSI3_HBA, 0, 0, 0, 2),
- SCSI_MAKE_DEVICE_UNIT(DEV_SCSI_DISK, DEV_SCSI3_HBA, 0, 0, 0, 2),
- (ClientData) NIL },
- { -1, SCSI_MAKE_DEVICE_TYPE(DEV_SCSI_DISK, DEV_SCSI0_HBA, 0, 0, 0, 0),
- SCSI_MAKE_DEVICE_UNIT(DEV_SCSI_DISK, DEV_SCSI0_HBA, 0, 0, 0, 0),
- (ClientData) NIL },
- { -1, SCSI_MAKE_DEVICE_TYPE(DEV_SCSI_DISK, DEV_SCSI3_HBA, 0, 0, 0, 0),
- SCSI_MAKE_DEVICE_UNIT(DEV_SCSI_DISK, DEV_SCSI3_HBA, 0, 0, 0, 0),
- (ClientData) NIL },
- };
- int devNumDefaultDiskPartitions = sizeof(devFsDefaultDiskPartitions) /
- sizeof(Fs_Device);
-